package com.xmy.cultivate.mapper;

import com.xmy.cultivate.entity.Admin;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 登录账号 Mapper 接口
 * </p>
 *
 * @author min
 * @since 2022-07-26
 */
public interface AdminMapper extends BaseMapper<Admin> {
    @Select("select * from admin where account = #{account}")
    public abstract Admin selectByUserName(@Param("account")String account);

    @Select("select pwd_show from admin where id = ${adminId}")
    public abstract String getShowPwd(@Param("adminId") Long adminId);
}
